package com.cjm.one.webmanager.service.goods;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cjm.one.model.goods.dto.GoodsInfoDto;
import com.cjm.one.model.goods.entity.GoodsInfo;
import com.cjm.one.model.goods.vo.GoodsInfoVo;

import java.util.List;

public interface GoodsInfoService {
    //分页查询商品列表
    Page<GoodsInfo> pageList(Long current, Long size, String name, Long categoryId);
    //新增商品
    Boolean saveGoodsInfo(GoodsInfoDto goodsInfoDto);

    Boolean removeById(Long id);

    Boolean updateGoodsInfo(GoodsInfoDto goodsInfoDto);

    GoodsInfoVo getGoodsInfoVoById(Long id);

    List<GoodsInfo> listBatchByIds(Long[] ids);
}
